<%--
  Created by IntelliJ IDEA.
  User: SK
  Date: 2024/6/26
  Time: 0:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户注册</title>
    <style>
        /* 这里可以添加一些简单的样式来美化页面 */
        label {
            display: block;
            margin-bottom: 10px;
        }
        input[type="text"], input[type="password"], input[type="date"], select {
            width: 200px;
            padding: 5px;
        }
    </style>
</head>
<body>
<h2>用户注册</h2>
<form action="registerServlet" method="post">
    <label for="userCode">用户编号:</label>
    <input type="text" id="userCode" name="userCode" required><br>

    <label for="userName">用户名:</label>
    <input type="text" id="userName" name="userName" required><br>

    <label for="password">密码:</label>
    <input type="password" id="password" name="password" required><br>

    <label for="email">邮箱:</label>
    <input type="email" id="email" name="email" required><br>

    <label for="gender">性别:</label>
    <select id="gender" name="gender" required>
        <option value="">请选择</option>
        <option value="male">男</option>
        <option value="female">女</option>
    </select><br>

    <label for="birthday">生日:</label>
    <input type="date" id="birthday" name="birthday"><br>

    <label for="phone">联系电话:</label>
    <input type="tel" id="phone" name="phone" required><br>

    <input type="submit" value="注册">
    <input type="button" value="登录" onclick="window.location.href='login.jsp'; return false;">
</form>
</body>
</html>
